<?php

	error_reporting (E_ALL ^ E_NOTICE);

	/*
	database name:
	argumen6_mainDatabase
	
	table name:
	argumentMaps
	
	user name:
	argumen6_lkjasld
	xvkL#KS%TE!4
	 
	columns:
	title, map 
	 */

	//get data from javascript save function
	//echo('hello php is working');
	
	$username="argumen6_lkjasld";
	$password="xvkL#KS%TE!4";
	$database="argumen6_mainDatabase";
	
	$selection = $_POST['title'];
	
	//connect to database
	//FIX ** this will have to be changed when uploaded
	$con = mysql_connect("127.0.0.1:3306",$username,$password);
	mysql_select_db($database, $con);

	
	$result = mysql_query("SELECT map FROM argumentMaps WHERE title='" . $selection . "'");
	$map = mysql_fetch_row($result);
	
	echo ($map[0]);
	echo mysql_error();

	mysql_close();
?>
